package com.example.girl.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.girl.activity.Base_Z_Adapter;
import com.example.girl.activity.MyApplication;
import com.example.girl.bean.Fankui;
import com.example.girl.bean.Fk_list;
import com.example.lbstest.R;


/**
 * Created by 他的猫 on 2016/12/3.
 * 运动员适配器
 */

public class FeedManager_Adapter extends Base_Z_Adapter {
    FeedManager_Adapter.Holder holder;

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        // 查找控件
        if (null == convertView) {
            convertView = LayoutInflater.from(MyApplication.getInstance())
                    .inflate(R.layout.tab_item_1_studntmanager, null);
            holder = new FeedManager_Adapter.Holder();
            holder.times = (TextView) convertView
                    .findViewById(R.id.times);
            holder.textView2 = (TextView) convertView
                    .findViewById(R.id.textView2);

            // 缓存Holder
            convertView.setTag(holder);
        } else {
            holder = (FeedManager_Adapter.Holder) convertView.getTag();
        }
        Fk_list.DataBean item = (Fk_list.DataBean) getItem(position);


        holder.times.setText("名称：" + item.getFeedback_name());
        holder.textView2.setText("内容：" + item.getFeedback_content());

        return convertView;
    }

    public class Holder {
        TextView times,textView2;


    }
}
